function validatePass(p1, p2) {
    if (p1.value != p2.value || p1.value == '' || p2.value == '') {
        p2.setCustomValidity('Password does not match.');
    } else {
        p2.setCustomValidity('');
    }
}
function validateEmail(p1, p2) {
    if (p1.value != p2.value || p1.value == '' || p2.value == '') {
        p2.setCustomValidity('Email does not match.');
    } else {
        p2.setCustomValidity('');
    }
}